//
//  DemoViewControllerWithXIB.m
//  EFBFrameworkProject
//
//  Created by 徐 洋 on 14-5-28.
//  Copyright (c) 2014年 ADCC. All rights reserved.
//

#import <EFBAccessoryBar.h>
#import "DemoViewControllerWithXIB.h"

@interface DemoViewControllerWithXIB ()

@end

@implementation DemoViewControllerWithXIB

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    EFBAccessoryBarItem * item = [[EFBAccessoryBarItem alloc] initWithStyleClass:@"accessory-lock" target:self action:@selector(onLockTapped:)];
    
    self.accessoryItems = @[item, item, item];
    
    [self didFinishLoadView];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)onLockTapped:(id)sender
{
}

@end
